<p-dataTable [value]="scheduleDatas" [responsive]="true" id="malfunctionTable">

    <p-column selectionMode="multiple" ></p-column>
    <p-column field="sid" header="出入单号" [sortable]="true">
        <ng-template let-data="rowData" pTemplate="operator">
            <span class="ui-cursor-point" (click)="onOperate(data)">{{data.sid}}</span>
        </ng-template>
    </p-column>
    <p-column field="creator" header="申请人" [sortable]="true"></p-column>
    <p-column field="create_time" header="创建时间" [sortable]="true"></p-column>
    <p-column field="registration_type" header="类型" [sortable]="true"></p-column>
    <p-column field="plan_time_begin" header="计划出入时间" [sortable]="true"></p-column>
    <p-column field="plan_time_end" header="预计完成时间" [sortable]="true"></p-column>
    <p-column field="owner" header="处理人" [sortable]="true"></p-column>
    <p-column field="status" header="状态" [sortable]="true"></p-column>
    <p-column field="color" header="操作项" [style]="{'width':'10vw'}">
        <ng-template let-data="rowData" pTemplate="operator">
            <app-btn-access-edit [data]="data"></app-btn-access-edit>
            <app-btn-access-delete [data]="data" ></app-btn-access-delete>
            <app-btn-access-approve [data]="data"></app-btn-access-approve>
            <app-btn-access-review [data]="data"></app-btn-access-review>
          <button pButton type="button" (click)="onOperate(data)" label="查看"></button>

          <!--<app-rfs-btn-reject [data]="data"></app-rfs-btn-reject>-->
            <!--<app-rfs-btn-assign [data]="data"></app-rfs-btn-assign>-->
            <!--<app-rfs-btn-close [data]="data"></app-rfs-btn-close>-->
            <!--<app-rfs-btn-deal [data]="data"></app-rfs-btn-deal>-->
            <!--<app-rfs-btn-process [data]="data"></app-rfs-btn-process>-->
            <!--<app-rfs-btn-delete [data]="data" (dataEmitter)="dataEmitter($event)"></app-rfs-btn-delete>-->
            <!--<app-rfs-btn-edit [data]="data"></app-rfs-btn-edit>-->
            <!--<app-rfs-btn-view [data]="data"></app-rfs-btn-view>-->
        </ng-template>
    </p-column>
    <ng-template pTemplate="emptymessage">
        当前没有数据
    </ng-template>
</p-dataTable>
<p-paginator rows="10" totalRecords="{{total}}" [rowsPerPageOptions]="[10,20,30]" pageLinkSize="3"  (onPageChange)="paginate($event)"></p-paginator>
